package top.peng.project.example.chapter2;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "my2")
@PropertySource(value = "classpath:my2.properties")
public class MyProperties2 {

    private int age;
    private String name;
    private String email;
}
